﻿using System.Data.Entity.ModelConfiguration;
using QDT.Core.Deals;

namespace QDT.Core.MSData.Mapping
{
    public class DealOfLoanMapping : EntityTypeConfiguration<DealOfLoan>
    {
        public DealOfLoanMapping()
        {
            HasKey(x => x.ID);
            Property(x => x.ProjectID).HasColumnName("deal_id");
            Property(x => x.UserID).HasColumnName("user_id");
            Property(x => x.UserName).HasColumnName("user_name");
            Property(x => x.CreateTime).HasColumnName("create_time");

            ToTable(DB.TPref("deal_load"));
        }
    }
}
